<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var input='1a23bc456def789';
        var rg01=/(\d+)([a-z]+)/;
        var result=rg01.exec(input);
        console.group('匹配到内容为');
        for(var index=0;index<result.length;index++){
            console.log(result[index]);
        }
        console.groupEnd();
        console.log('正则表达式对象所操作的字符串为：'+result.input+'。');
        console.log('匹配到的内容在字符串里的索引为：'+result.index+'。');



    </script>

</head>
<body>

</body>
</html>